/**
 * @program: LeetCode
 * @description: LeetCode :剑指 Offer II 068. 查找插入位置
 * @author: WXY
 * @create: 2023-01-09 10:08
 * @Version 1.0
 **/
public class offer_twentythree1_searchInsert {
    public static int searchInsert(int[] arr, int target) {

        for (int i = 0; i < arr.length; i++) {
            if (arr[i] >= target) {
                return i;
            }
        }
        return arr.length;
    }
}
